package com.jiang.feign.mybatis_plus;

import com.jiang.core.common.MSG;
import com.jiang.feign.mybatis_plus.dto.GoodsDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "mybatis-plus", path = "mybatis-plus/api/v1/goods")
public interface GoodsServiceAPI {

    @PostMapping("/add")
    MSG<?> add(@RequestBody GoodsDTO DTO);
}